package com.lyeducation.entities.course.middle;

import javax.persistence.*;

/**
 * 章节1-n视频
 */
@Entity
@Table(name = "chapter_video")
@IdClass(ChapterVideoEntityPK.class)
public class ChapterVideoEntity {
    private String chapterId;
    private String videoId;

    @Id
    @Column(name = "chapterId", nullable = false, length = 18)
    public String getChapterId() {
        return chapterId;
    }

    public void setChapterId(String chapterId) {
        this.chapterId = chapterId;
    }

    @Id
    @Column(name = "videoId", nullable = false, length = 18)
    public String getVideoId() {
        return videoId;
    }

    public void setVideoId(String videoId) {
        this.videoId = videoId;
    }

//    public void setUserId(String userId) {
//        this.userId = userId;
//    }
//
//    @Id
//    @Column(name = "commentId", nullable = false, length = 18)


//    public void setCommentId(String commentId) {
//        this.commentId = commentId;
//    }
//
//    @Basic
//    @Column(name = "createTime", nullable = true)
//    public Timestamp getCreateTime() {
//        return createTime;
//    }
//
//    public void setCreateTime(Timestamp createTime) {
//        this.createTime = createTime;
//    }

}
